// pages/store/store_staff_fission.js
import { StoreOwnerRank } from '../../model/store-owner-rank.js';
var storeOwnerRank = new StoreOwnerRank();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    hidden: false,
    storeGroup: [],
    storeUser: [],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.showLoading({
      title: '加载中',
    });
    this.getStoreRank();
  },
  getStoreRank() {
    storeOwnerRank.getStoreStaffFissionRank((res) => {
      this.setData({
        hidden: true,
        storeGroup: res,
      })
      wx.hideLoading();
    })
  },
  /**
   * 拨打电话
   */
  callPhone(e) {
    wx.makePhoneCall({
      phoneNumber: e.currentTarget.dataset.phone
    })
  },
})